<?php
class ecTemplateStyleSheets{

  public static function getStylesSheets($viewParams = array(), $params = array())
  {
    $css = "";
    $md5 = "";
    foreach($viewParams as $key => $values)
      if($key == 'css')
        foreach($values as $value)
        {
          $md5 = md5_file(dirname(__FILE__).'/../../../'.$params['dir_web'].'/stylesheets/'.$value);
          $css .= ecTemplateHelpers::stylesheet_tag('/stylesheets/'.$value.'?v='.$md5);
        }

    return $css;
  }
  
}
?>
